package cn.jaye.fabric.common.model;

import cn.jaye.fabric.domain.model.User;

/**
 * @author Jaye
 * @create 2018-05-28 17:21
 */
public class SystemSession {

    private static ThreadLocal<User> local = new ThreadLocal<>();

    public static void setUser(User user) {
        local.set(user);
    }

    public static User getUser() {
        return local.get();
    }
}
